﻿
@{
    ViewBag.Title = "_NewsFeed";
}

<div id="divGlobalNewsFeed">
    <h1>Current Reviews</h1>
    <div id="displayNews">
    <ul id="displayFeed">
        
    @foreach ( NewProject.Models.Review review in ((System.Collections.IEnumerable)ViewData["reviews"]))
    {
        <li onclick="location.href='@Url.Action("Search", new { search = review.PostID, searchType = "PostID" })'" >
     
            <label class="singleReview">
               <span id="postTitle">@review.Post.Title</span>
                 
                <br />
                <span id="lblItems">@review.UserName</span>
                <span >rated: @review.Rating ★ </span>

                <br />
                @if (!String.IsNullOrWhiteSpace(review.ReviewText))
                {
          
                    <span>Commented:</span>
                    <span id="reviewText">@review.ReviewText</span>
                }

            </label>





        </li>
    }
        </ul>
</div>
</div>